package entity;
/**
 * 
 * @author 小五
 * 订单详情实体类
 *
 */
public class OrderDetails {
	private int id;//主键
	private int order_id;//订单编号
	private int user_id;//用户编号
	private int total;//总金额
	private int num;//数量
	private int state;//订单状态 0 买家未付款  1买家已付款 2交易成功 3交易已撤销
	private String stime;//创建时间
	private String etime;//付款时间
	private int gift;//是否赠送 0 不是赠送 1 是赠送
	
	
	
	@Override
	public String toString() {
		return "OrderDetails [id=" + id + ", order_id=" + order_id + ", user_id=" + user_id + ", total=" + total
				+ ", num=" + num + ", state=" + state + ", stime=" + stime + ", etime=" + etime + ", gift=" + gift
				+ "]";
	}
	public OrderDetails() {
		super();
	}
	public OrderDetails(int id, int order_id, int user_id, int total, int num, int state, String stime, String etime,
			int gift) {
		super();
		this.id = id;
		this.order_id = order_id;
		this.user_id = user_id;
		this.total = total;
		this.num = num;
		this.state = state;
		this.stime = stime;
		this.etime = etime;
		this.gift = gift;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getOrder_id() {
		return order_id;
	}
	public void setOrder_id(int order_id) {
		this.order_id = order_id;
	}
	public int getUser_id() {
		return user_id;
	}
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public String getStime() {
		return stime;
	}
	public void setStime(String stime) {
		this.stime = stime;
	}
	public String getEtime() {
		return etime;
	}
	public void setEtime(String etime) {
		this.etime = etime;
	}
	public int getGift() {
		return gift;
	}
	public void setGift(int gift) {
		this.gift = gift;
	}
	
	
	
	
	
	
	
}
